package com.hsy.commonsdk.app;

import android.content.Context;
import com.blankj.utilcode.util.Utils;

public class AppInstanceManager {

    private static volatile AppInstanceManager singleton;

    private AppInstanceManager() {
    }

    public static AppInstanceManager getInstance() {
        if (singleton == null) {
            synchronized (AppInstanceManager.class) {
                if (singleton == null) {
                    singleton = new AppInstanceManager();
                }
            }
        }
        return singleton;
    }

    public void instance(Context base) {
        AppConstant.getInstance().init(base.getPackageName());
    }

}